home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48_2
/
areuh.tar
/
areuh
/
cpy
/
a2lex.c
next >
Wrap
C/C++ Source or Header
|
1990-10-10
|
641b
|
40 lines
/*
* Authors :
* Pierre DAVID (pda@masi.ibp.fr or pda@frunip62.bitnet)
* Janick TAILLANDIER
*
* This program can be freely used or distributed as long as this
* note is kept.
*
* This program is provided "as is".
*/
#include "copy.h"
char outname [100] ;
FILE *fpdev ;
init ()
{
#ifdef unix
fpdev = stdout ;
#else
sprintf (outname, "%s.lex", file) ;
if ((fpdev = fopen (outname, "wb")) == NULL)
error (ERROPN, outname) ;
#endif
}
output (c)
uchar c ;
{
putc ((int) c, fpdev) ;
if (ferror (fpdev)) error (ERRWRT, outname) ;
}
term ()
{
if (fclose (fpdev))
error (ERRCLO, outname) ;
}